class Admin::BaseController < ApplicationController
  before_filter :login_required, :set_nav_session
  
  protected
  def login_required
    authorized? ||access_denied
  end
  
  def authorized?
    logged_in? && current_user.is_admin != :false
  end
  
  def set_nav_session
    session[:nav] = ""
  end
end
